package com.hellomvp.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.SpanElement;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;

public class HelloRightPanel extends Composite {

	private static RightPanelUiBinder uiBinder = GWT.create(RightPanelUiBinder.class);

	interface RightPanelUiBinder extends UiBinder<Widget, HelloRightPanel> {
	}
	
	@UiField SpanElement nameSpan;

	public HelloRightPanel() {
		initWidget(uiBinder.createAndBindUi(this));
	}
	
	public void setName(String name) {
		nameSpan.setInnerText("Hello " + name);
	}
}
